<h4>Task Information</h4>
<hr/>
<?php echo CHtml::encode($model->description); ?>
<hr/>
<ul class="profile-info">
    <li><span>date created</span><?php echo date("D, d M Y g:ia", strtotime($model->create_date)); ?></li>
    <li><span>last modified</span><?php echo date("D, d M Y g:ia", strtotime($model->modify_date)); ?></li>
    <li><span>start date</span><?php echo date("D, d M Y g:ia", strtotime($model->start_date)); ?></li>
    <li><span>due date</span><?php echo date("D, d M Y g:ia", strtotime($model->due_date)); ?></li>
    <li><span>status</span><?php echo ($model->complete_date) ? 'Finished' : 'In Progress'; ?></li>
    <?php if ($model->list): ?>
    <li><span>filed under</span><?php echo $model->list->name; ?></li>
    <?php endif; ?>
</ul>

<h4>Actions</h4>
<hr/>
<?php echo ($model->complete_date) ? '<em>none</em>' : CHtml::link('set task as done', array('todo/markAsDone', 'id' => $model->id), array('class' => 'button button-gray')); ?>